#ifndef __TOLL_GATE_SCENE_H__
#define __TOLL_GATE_SCENE_H__
#include "cocos2d.h"
#include "../entity/Player.h"
#include "ui/UIWidget.h"
#include "ui/UILoadingBar.h"
#include "ui/UIText.h"

USING_NS_CC;
class Player;
class TollgateScene :public Scene {
public:
	static Scene* createScene();
	virtual bool init();
	CREATE_FUNC(TollgateScene);
private:
	void initBG();

	void initUINode();

	void jumpEvent(Ref *, ui::Widget::TouchEventType type);

	void addMonsterManager();

	virtual void update(float delta);
private:
	Sprite* m_bgSprite1;
	Sprite* m_bgSprite2;

	Player* m_player;

	int m_iScore;
	ui::Text* m_scoreLab;
	ui::LoadingBar* m_hpBar;
};

#endif // !__TOLL_GATE_SCENE_H__

